﻿using T_settlement.Infrastructure.Impl;
using T_settlement.Infrastructure.Interfacec;

namespace T_settlement.Read.API.Extensions
{
    public static class ServicesColltionExtenssions
    {
        /// <summary>
        /// 扩展注入
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddServices(this IServiceCollection services)
        {

            //收费
            services.AddScoped<lsettlementRepository, settlementRepository>();
            //付费
            services.AddScoped<IPayMoneyRepository, PayMoneyRepository>();
            //进项发票
            services.AddScoped<InvoiceRepository, nvoiceRepository>();
            //销项发票
            services.AddScoped<IOutputRepository, OutputRepository>();         
            //付款
            services.AddScoped<IPaymentRepository, PaymentRepository>();
            return services;
        }

    }
}
